// mypage/webView/webView.js

Page({
  /*页面的初始数据*/
  data: {
    url_list:[
      'https://app.jiabala.com/html/book/publish/privacy.html',
      'https://app.jiabala.com/html/book/publish/user.html',
      'https://app.jiabala.com/html/book/publish/businessservice.html',
      'https://app.jiabala.com/html/book/publish/businessjoin.html'
    ],
    url: '',
    index: '',
  },
  /*生命周期函数--监听页面加载*/
  onLoad: function (options) {
    var that=this,url_list=that.data.url_list;
    var title=options.title;
    wx.setNavigationBarTitle({title: title})
    if(options.index==4){
      url_list.push(options.url)
    }
    that.setData({index:options.index,url_list:url_list})
  },
})